<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/main.css">
    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
    <!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
    <script type="text/javascript" src="../../js/wangEditor.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.base64.js"></script>
</head>

<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="searchParam" @keyup.enter="query" placeholder="项目名称">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <a v-if="hasPermission('projectinfo:projectinfos:audit')" class="btn btn-primary" @click="audit"><i class="fa fa-pencil-square-o"></i>&nbsp;审核</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">项目id</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.projectinfoid" placeholder="地区id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">地区id</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.areainfoid" placeholder="地区id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">发布者</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="userinfo.useraccount" placeholder="发布者"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目名称</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.projectname" placeholder="项目名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目详细</div>
                <div class="col-sm-10">
                    <!--<textarea disabled="disabled" rows="5" disabled="disabled" cols="20" v-model="projectinfos.description" style="width: 150%;height: 150px" placeholder="项目详细">-->

                    <!--</textarea>-->
                    <!--<div id="editor" style="width: 200%;">-->

                    <!--</div>-->
                    <div id="editor" style="height:400px;max-height:500px;width: 200%">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">详细地址</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.detailedaddress" placeholder="其他备注内容"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目人数</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.peoplenum" placeholder="其他备注内容"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">联系信息</div>
                <div class="col-sm-10">
                    <textarea disabled="disabled" rows="5" cols="20" v-model="projectinfos.connection" style="width: 150%;height: 100px" placeholder="联系信息">

                    </textarea>
                    <!--<input disabled="disabled" type="text" class="form-control" v-model="projectinfos.connection" placeholder="联系信息"/>-->
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目类型</div>
                <div class="col-sm-10">
                    <select class="form-control" v-model="projectinfos.projecttype" disabled="disabled">
                        <option value="0">工程</option>
                        <option value="1">车队</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.createtime" placeholder="创建时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">更新时间</div>
                <div class="col-sm-10">
                    <input type="text" disabled="disabled" class="form-control" v-model="projectinfos.updatetime" placeholder="更新时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目进度</div>
                <div class="col-sm-10">
                    <select class="form-control" v-model="projectinfos.projectprogress" disabled="disabled">
                        <!--<option v-for="item in projectinfos" :value="item.dictypeid">{{ item.typename }}</option>-->
                        <option value="0">进行中</option>
                        <option value="1">项目完成</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">审核状态</div>
                <div class="col-sm-10">
                    <select class="form-control" v-model="projectinfos.auditstatus">
                        <!--<option v-for="item in projectinfos" :value="item.dictypeid">{{ item.typename }}</option>-->
                        <option value="0">待审核</option>
                        <option value="1">审核通过</option>
                        <option value="2">审核失败</option>
                    </select>
                </div>
            </div>
            <div class="form-group" v-show="reason()">
                <div class="col-sm-2 control-label">不通过原因</div>
                <div class="col-sm-10">
                    <textarea rows="5" cols="20" v-model="projectinfos.cannotpassreason" style="width: 150%;height: 100px" placeholder="不通过原因">

                    </textarea>
                    <!--<input type="text" class="form-control" v-model="projectinfos.cannotpassreason" placeholder="不通过原因"/>-->
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="../../js/modules/projectaudit/projectaudit.js"></script>
</body>
</html>